package org.jeecg.modules.wmhb.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 任务书表
 * @Author: jeecg-boot
 * @Date:   2024-09-06
 * @Version: V1.0
 */
@Data
@TableName("wm_taskbook")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wm_taskbook对象", description="任务书表")
public class WmTaskbook implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**租户*/
	@Excel(name = "租户", width = 15)
    @ApiModelProperty(value = "租户")
    private java.lang.String tenantId;
    /**合同ID*/
    @Excel(name = "合同ID", width = 15)
    @Dict(dictTable = "wm_contract", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "合同ID")
    private java.lang.String wmContractId;
    /**合同*/
    @TableField(exist = false)
    @ApiModelProperty(value = "合同")
    private WmContract wmContract;
    /**项目*/
    @TableField(exist = false)
    @ApiModelProperty(value = "项目")
    private WmProject wmProject;
	/**合同产品ID*/
	@Excel(name = "合同产品ID", width = 15)
    @ApiModelProperty(value = "合同产品ID")
    @Dict(dictTable = "wm_contract_product", dicText = "name", dicCode = "id")
    private java.lang.String wmContractProductId;
    /**合同产品*/
    @Excel(name = "合同产品", width = 15)
    @TableField(exist = false)
    @ApiModelProperty(value = "合同产品")
    private WmContractProduct wmContractProduct;
	/**任务书名称*/
	@Excel(name = "任务书名称", width = 15)
    @ApiModelProperty(value = "任务书名称")
    private java.lang.String name;
	/**任务书编码*/
	@Excel(name = "任务书编码", width = 15)
    @ApiModelProperty(value = "任务书编码")
    private java.lang.String code;
	/**负责人*/
	@Excel(name = "负责人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
    @ApiModelProperty(value = "负责人")
    private java.lang.String chargeBy;
	/**进度*/
	@Excel(name = "进度", width = 15)
    @ApiModelProperty(value = "进度")
    private java.lang.String progress;
	/**联系人*/
	@Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    private java.lang.String contactPerson;
	/**附件*/
	@Excel(name = "附件", width = 15)
    @ApiModelProperty(value = "附件")
    private java.lang.String file;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "taskbook_status")
	@Dict(dicCode = "taskbook_status")
    @ApiModelProperty(value = "状态")
    private java.lang.String status;
	/**当前节点ID*/
	@Excel(name = "当前节点ID", width = 15)
    @ApiModelProperty(value = "当前节点ID")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    private java.lang.String currentNodeId;
    /**当前节点索引*/
    @Excel(name = "当前节点索引", width = 15)
    @ApiModelProperty(value = "当前节点索引")
    private java.lang.Integer currentNodeIndex;
	/**计划开始时间*/
	@Excel(name = "计划开始时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划开始时间")
    private java.util.Date planBeginTime;
	/**计划完成时间*/
	@Excel(name = "计划完成时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划完成时间")
    private java.util.Date planEndTime;
	/**实际开始时间*/
	@Excel(name = "实际开始时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "实际开始时间")
    private java.util.Date factBeginTime;
	/**实际完成时间*/
	@Excel(name = "实际完成时间", width = 20, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "实际完成时间")
    private java.util.Date factEndTime;
	/**权重*/
	@Excel(name = "权重", width = 15)
    @ApiModelProperty(value = "权重")
    private java.lang.String weight;
    /**是否已转换生产任务书*/
    @Excel(name = "是否已转换生产任务书", width = 15)
    @ApiModelProperty(value = "是否已转换生产任务书")
    @Dict(dicCode = "sys_yes_no")
    private java.lang.String isTransferProduceTaskbook;
    /**是否已转换采购任务书*/
    @Excel(name = "是否已转换采购任务书", width = 15)
    @ApiModelProperty(value = "是否已转换采购任务书")
    @Dict(dicCode = "sys_yes_no")
    private java.lang.String isTransferPurchaseTaskbook;
	/**关联任务书ID*/
	@Excel(name = "关联任务书ID", width = 15)
    @ApiModelProperty(value = "关联任务书ID")
    private java.lang.String wmTaskbookId;
	/**事业部ID*/
	@Excel(name = "事业部ID", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "事业部ID")
    private java.lang.String buId;
	/**任务书流程ID*/
	@Excel(name = "任务书流程ID", width = 15, dictTable = "wm_taskbook_flow", dicText = "name", dicCode = "id")
	@Dict(dictTable = "wm_taskbook_flow", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "任务书流程ID")
    private java.lang.String wmTaskbookFlowId;
	/**供应商ID*/
	@Excel(name = "供应商ID", width = 15, dictTable = "wm_vendor", dicText = "cn_name", dicCode = "id")
	@Dict(dictTable = "wm_vendor", dicText = "cn_name", dicCode = "id")
    @ApiModelProperty(value = "供应商ID")
    private java.lang.String wmVendorId;
    /**任务执行公司ID*/
    @Excel(name = "任务执行公司ID", width = 15, dictTable = "wm_vendor", dicText = "cn_name", dicCode = "id")
    @Dict(dictTable = "wm_vendor", dicText = "cn_name", dicCode = "id")
    @ApiModelProperty(value = "任务执行公司ID")
    private java.lang.String executeCompanyId;
    /**批次号*/
    @Excel(name = "批次号", width = 15)
    @ApiModelProperty(value = "批次号")
    private java.lang.String batchNo;
    /**任务书类型*/
    @Excel(name = "任务书类型", width = 15, dicCode = "taskbook_type")
    @Dict(dicCode = "taskbook_type")
    @ApiModelProperty(value = "任务书类型")
    private java.lang.String taskbookType;
    /**计划确认时间*/
    @Excel(name = "计划确认时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划确认时间")
    private java.util.Date confirmTime;
    /**审批时间（生产或设计）*/
    @Excel(name = "审批时间（生产或设计）", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审批时间（生产或设计）")
    private java.util.Date approveTime;
    /**任务书接收部门ID*/
    @Excel(name = "任务书接收部门ID", width = 15)
    @ApiModelProperty(value = "任务书接收部门ID")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    private java.lang.String acceptDepartId;
    /**计划工时*/
    @Excel(name = "计划工时", width = 15)
    @ApiModelProperty(value = "计划工时")
    private java.lang.String planWorkHour;
    /**当前BOM版本*/
    @Excel(name = "当前BOM版本", width = 15)
    @ApiModelProperty(value = "当前BOM版本")
    private java.lang.String currentVersion;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**删除者*/
	@Excel(name = "删除者", width = 15)
    @ApiModelProperty(value = "删除者")
    private java.lang.String deleteBy;
	/**删除时间*/
	@Excel(name = "删除时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "删除时间")
    private java.util.Date deleteTime;
    /**任务列表*/
    @TableField(exist = false)
    @ExcelCollection(name="任务列表")
    @ApiModelProperty(value = "任务列表")
    private List<WmTask> children;
    /**能否转生产任务书*/
    @TableField(exist = false)
    private java.lang.Boolean canTransferProduce = false;
    /**能否转采购任务书*/
    @TableField(exist = false)
    private java.lang.Boolean canTransferPurchase = false;
    /**流程部门列表*/
    @TableField(exist = false)
    @ApiModelProperty(value = "流程部门列表")
    private List<WmTaskFlow> wmTaskFlowList;
    /**是否设置了发货单位*/
    @TableField(exist = false)
    private java.lang.Boolean isSendUnitSetting = true;
    /**能否技改完成*/
    @TableField(exist = false)
    private java.lang.Boolean canTransferSkill = false;
}
